package com.fxsen.commons.sysmanager.core.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fxsen.commons.core.base.common.entity.BaseEntity;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 用户角色表(SysUserRole)表实体类
 *
 * @author <a href="mailto:fuqiang@wisesoft.net.cn">付强</a>
 * @since 2022-01-19 17:10:29
 */
@ApiModel("用户角色")
@TableName("sys_user_role")
@TableComment(value = "用户与角色关联表")
public class UserRole extends BaseEntity {
    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    @TableField(value = "user_id")
    private String userId;
    /**
     * 角色id
     */
    @ApiModelProperty("角色id")
    @TableField(value = "role_id")
    private String roleId;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }
}

